#include<bits/stdc++.h>
using namespace std;
int n;
int a[100001];
int b[100001];
set<int>ap;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        int x;
        cin>>x;
        a[x]++;
        ap.insert(x);
    }
    for(int i=1;i<=100000;i++)b[i]=a[i];
    int id=1;
    for(auto p=ap.begin();p!=ap.end();p++){
        int i=*p;
        if(a[i]==0)continue;
        id++;
        for(auto p2=p;p2!=ap.end();p2++){
            if(p2==p)continue;
            int j=*p2;
            if(a[i]==0)break;
            if(a[i]>=b[j]){
                a[i]-=b[j];
                b[j]=0;
            }
            else{
                b[j]-=a[i];
                a[i]=0;
            }
        }
        //cout<<a[i]<<" "<<b[i]<<" "<<i<<endl;
    }
    int ans=0;
    for(int i=1;i<=100000;i++){
        if(a[i])ans+=a[i];
    }
    cout<<ans;
    return 0;
}
